package com.zang.threadschema.immutable;

/**
 * 彩信中心信息
 * @author Zhang Qiang
 * @Date 2019/9/11 10:17
 */
public final class MMSCInfo {
    /**
     * 设备编号
     */
    private final String deviceID;

    /**
     * 彩信中心URL
     */
    private final String url;

    /**
     * 当前彩信中心允许最大附件大小
     * 
     */
    private final int maxAttachmentSizeInBytes;

    public MMSCInfo(String deviceID, String url, int maxAttachmentSizeInBytes) {
        this.deviceID = deviceID;
        this.url = url;
        this.maxAttachmentSizeInBytes = maxAttachmentSizeInBytes;
    }

    public MMSCInfo(MMSCInfo mmscInfo) {
        this.deviceID = mmscInfo.getDeviceID();
        this.url = mmscInfo.getUrl();
        this.maxAttachmentSizeInBytes = mmscInfo.getMaxAttachmentSizeInBytes();
    }

    public String getDeviceID() {
        return deviceID;
    }

    public String getUrl() {
        return url;
    }

    public int getMaxAttachmentSizeInBytes() {
        return maxAttachmentSizeInBytes;
    }
}
